cmake_minimum_required(VERSION 3.15)

# OpenVINO引擎配置
set(ENGINE_SRC
    inference.cpp
    preprocess.cpp
)

find_package(OpenCV REQUIRED)
include_directories(
    ${OpenVINO_INCLUDE_DIRS}
    ${CMAKE_SOURCE_DIR}/../../include
)

add_library(ov_engine ${ENGINE_SRC})
target_link_libraries(ov_engine
    ${OpenVINO_LIBRARIES}
    ${OpenCV_LIBS}
)

# 安装规则
install(TARGETS ov_engine
    LIBRARY DESTINATION lib
    ARCHIVE DESTINATION lib
)